package com.jming.jike.enums;

/**
 * 文件类型枚举
 *
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/04/28
 */
public enum FileTypeEnum {
    /**
     * 图片
     */
    IMAGE_FILE(1, "image"),

    /**
     * 视屏
     */
    VIDEO_FILE(2, "video"),

    /**
     * 音频
     */
    AUDIO_FILE(3, "audio"),

    /**
     * word文档
     */
    WORD_FILE(4, "word"),

    /**
     * excel表格
     */
    EXCEL_FILE(5, "excel"),

    /**
     * 文档
     */
    DOCUMENT_FILE(6, "document"),

    /**
     * 应用程序
     */
    APPLICATION_FILE(7, "application"),

    /**
     * 其他
     */
    OTHER_FILE(8, "other");

    private final Integer code;
    private final String desc;

    FileTypeEnum(Integer code, String desc) {

        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
